* eglot.el (eglot-eldoc-function): Check non-nil contents.
GitHub-reference: per https://github.com/joaotavora/eglot/issues/74
:success-fn (jsonrpc-lambda (&key contents range)
(unless sig-showing
(when-buffer-window
- (when-let (info (eglot--hover-info contents range))
+ (when-let (info (and contents
+ (eglot--hover-info contents
+ range)))
(eldoc-message info)))))
:deferred :textDocument/hover))
(when (eglot--server-capable :documentHighlightProvider)